<?php    

include_once($templatepath."ThreadTemplate.class.php");
include_once($templatepath."EntryTemplate.class.php");
include_once($templatepath."BoardThread.class.php");

$thread = new BoardThread($tdata, $data, new ThreadTemplate(), new EntryTemplate());

$thread->paint($mode);

?>